<?php
Route::group([
    'namespace' => 'Wechat',
    'prefix' => 'wechat'
], function () {
    // 产品列表。
    Route::get('product/list', [
        'as' => 'WechatProductList',
        'uses' => 'ProductController@getList'
    ]);

    Route::get('product/detail', [
        'as' => 'WechatProductDetail',
        'uses' => 'ProductController@getDetail'
    ]);

    Route::get('product/hb/{alias}/{uid}', [
        'as' => 'WechatProductHb',
        'uses' => 'ProductHbController@getDetail'
    ]);

    Route::get('qr-code', [
        'as' => 'WechatQrCode',
        'uses' => 'ProductHbController@getQrCode'
    ]);
});